package com.raulraja.service.impl;

import com.raulraja.service.BusinessService;
import com.raulraja.util.aop.profile.Profile;
import org.apache.log4j.Logger;

/**
 * This a very important service impl with methods that is doing something slow and needs to be profiled
 */
public class BusinessServiceImpl implements BusinessService {

	private final static Logger logger = Logger.getLogger(BusinessServiceImpl.class);

	/**
	 * Do some work , by adding the @Profile annotation the interceptor provides advice
	 */
	@Profile
	public void doSomething() {
		logger.debug("nothing done for simplicity");
	}
}
